package com.zznj.xzjc.activity;

import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import com.flyco.tablayout.SlidingTabLayout;
import com.flyco.tablayout.listener.OnTabSelectListener;
import com.google.gson.Gson;
import com.vondear.rxtool.RxActivityTool;
import com.zznj.xzjc.R;
import com.zznj.xzjc.activity.index.ActivityZtgkMain;
import com.zznj.xzjc.base.BaseActivity;
import com.zznj.xzjc.fragment.index.WorkFragment;
import com.zznj.xzjc.net.SharedHelper;
import com.zznj.xzjc.net.entity.DictionaryBean;
import com.zznj.xzjc.net.entity.LoginBean;
import com.zznj.xzjc.view.StatusBarUtil;
import com.zznj.xzjc.widget.FragmentAda;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * 描述：线索发现
 */
public class ActivityZnyjMain extends BaseActivity {
    @BindView(R.id.xzzxcsLinear)
    View xzzxcsLinear;
    @BindView(R.id.fyslcsyjLinear)
    View fyslcsyjLinear;
    @BindView(R.id.cdzxcsyjLinear)
    View cdzxcsyjLinear;
    @BindView(R.id.xzlacscsyjLinear)
    View xzlacscsyjLinear;
    @BindView(R.id.xzcfcsyjLinear)
    View xzcfcsyjLinear;
    @BindView(R.id.fylacsyjLinear)
    View fylacsyjLinear;
    @BindView(R.id.qzzxcsyjLinear)
    View qzzxcsyjLinear;
    @BindView(R.id.zxjeyjLinear)
    View zxjeyjLinear;

    @BindView(R.id.jcjycsyjLinear)
    View jcjycsyjLinear;


    Unbinder unbinder;

    @Override
    protected int getLayoutId() {
        return R.layout.gyss_activity_znyj_main_layout;
    }

    @Override
    public void initView() {
        setTitle("智能预警");
    }


    private List<DictionaryBean> fromList;

    @Override
    protected void initData() {
    }


    @OnClick({R.id.xzzxcsLinear,R.id.fyslcsyjLinear,R.id.cdzxcsyjLinear,R.id.xzlacscsyjLinear,R.id.xzcfcsyjLinear,R.id.fylacsyjLinear,R.id.qzzxcsyjLinear,R.id.zxjeyjLinear,R.id.jcjycsyjLinear})
    public void onViewClicked(View view) {
        Bundle bundle = new Bundle();

        if(view.getId() == R.id.xzzxcsLinear){
            bundle.putInt("queryType",1);
            bundle.putString("title","行政执行超时预警");
        }else if (view.getId() == R.id.fyslcsyjLinear) {
            bundle.putInt("queryType",2);
            bundle.putString("title","法院受理超时预警");
        }else if (view.getId() == R.id.cdzxcsyjLinear) {
            bundle.putInt("queryType",3);
            bundle.putString("title","裁定执行超时预警");
        }else if (view.getId() == R.id.xzlacscsyjLinear) {
            bundle.putInt("queryType",7);
            bundle.putString("title","行政立案超时预警");
        }else if (view.getId() == R.id.xzcfcsyjLinear) {
            bundle.putInt("queryType",8);
            bundle.putString("title","行政处罚超时预警");
        }else if (view.getId() == R.id.fylacsyjLinear) {
            bundle.putInt("queryType",9);
            bundle.putString("title","法院立案超时预警");
        }else if (view.getId() == R.id.qzzxcsyjLinear) {
            bundle.putInt("queryType",10);
            bundle.putString("title","强制执行超时预警");
        }else if (view.getId() == R.id.zxjeyjLinear) {
            bundle.putInt("queryType", 1000);
            bundle.putString("title","执行金额预警");
        }else if (view.getId() == R.id.jcjycsyjLinear) {
            bundle.putInt("queryType", 1001);
            bundle.putString("title","检察建议超时预警");
        }
        RxActivityTool.skipActivity(mContext, ActivityZnyjAnJian.class,bundle);
    }
}
